<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<title>Database - Query Building - Fuel Documentation</title>
	<link href="../../assets/css/main.css" media="screen" rel="stylesheet" />
	<script type="text/javascript" src="../../assets/js/jquery-1.4.4.min.js"></script>
	<script type="text/javascript" src="../../assets/js/nav.js"></script>
	<script type="text/javascript" src="../../assets/js/highlight.pack.js"></script>
	<script type="text/javascript">
		$(function() {
			show_nav('classes', '../../');
		});
		hljs.tabReplace = '    ';
		hljs.initHighlightingOnLoad();
	</script>
</head>
<body>

	<header>
		<h1>Fuel Documentation</h1>
	</header>

	<div id="main-nav"></div>

	<section id="content">
		<h2 id="introduction">Query Building</h2>
		
		<p class="note">
			<strong>Note:</strong>
			At the time of writing the query builder classes are reworked so they can handle multiple sql dialects.
		</p>
		<p>
			The abstraction of writing SQL for database queries is done by the <strong>Query Builder</strong>. The query builder
			consists a set of classes, each handling a specific part of the query building process.
		</p>
		<p>
			Using the query builder is will go unnoticed most of the times as the <a href="db.html">DB class</a> provides shortcuts for
			creating new query builder objects. It's advised to use these methods to get the right query builder. this is common
			practice and will keep your code readable.
		</p>
		
		<p>
			Here are the classes that query builder consists of:
		</p>
		
		<ul>
			<li>Query_Builder (abstract)</li>
			<li><a href="qb_where.html">Query_Builder_Where</a> (abstract)</li>
			<li><a href="qb_select.html">Query_Builder_Select</a></li>
			<li><a href="qb_insert.html">Query_Builder_Insert</a></li>
			<li><a href="qb_update.html">Query_Builder_Update</a></li>
			<li><a href="qb_delete.html">Query_Builder_Delete</a></li>
			<li>Query_Builder_Join</li>
		</ul>
		
	</section>

	<section id="footer">
		<p>
			<a href="http://fuelphp.com">Fuel</a> is released under the MIT license.<br />
			&copy; 2010 - 2011 Fuel Development Team
		</p>
	</section>

</body>
</html>
